package com.lhd.ivos.audit.mapper;

import com.lhd.ivos.audit.pojo.dto.AuditQuery;
import com.lhd.ivos.audit.pojo.entity.Audit;
import com.lhd.ivos.audit.pojo.vo.AuditVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lhd
 * date 2024/5/24
 * @apiNote
 */
@Repository
public interface AuditMapper {
    void insert(Audit audit);

    void deleteByApplicationId(Long id);

    List<AuditVO> selectAudit(AuditQuery auditQuery);

    List<AuditVO> selectAuditByApplicationId(Long applicationId);

    void update(Audit audit);

    Integer selectRestAuditCount(AuditQuery auditQuery);

    void deleteById(Long id);
}
